require("../../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pagesA/pages/meituan/index" ], {
    2942: function(t, e, a) {
        (function(t) {
            function e(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            a("0cda"), e(a("66fd")), t(e(a("72a9")).default);
        }).call(this, a("543d").createPage);
    },
    "2cde": function(t, e, a) {
        a.d(e, "b", function() {
            return i;
        }), a.d(e, "c", function() {
            return r;
        }), a.d(e, "a", function() {
            return n;
        });
        var n = {
            sjTabBar: function() {
                return a.e("components/sj-tab-bar/sj-tab-bar").then(a.bind(null, "1ba9"));
            }
        }, i = function() {
            this.$createElement;
            this._self._c;
        }, r = [];
    },
    "2d4a": function(t, e, a) {},
    "72a9": function(t, e, a) {
        a.r(e);
        var n, i = a("2cde"), r = a("b2f5");
        for (n in r) "default" !== n && function(t) {
            a.d(e, t, function() {
                return r[t];
            });
        }(n);
        a("a54f");
        var o = a("f0c5"), i = Object(o.a)(r.default, i.b, i.c, !1, null, null, null, !1, i.a, void 0);
        e.default = i.exports;
    },
    "7c3e": function(t, i, s) {
        (function(r) {
            Object.defineProperty(i, "__esModule", {
                value: !0
            }), i.default = void 0;
            var t, o = (t = s("a34a")) && t.__esModule ? t : {
                default: t
            };
            function c(t, e, a, n, i, r, o) {
                try {
                    var g = t[r](o), c = g.value;
                } catch (t) {
                    return a(t), 0;
                }
                g.done ? e(c) : Promise.resolve(c).then(n, i);
            }
            function e(g) {
                return function() {
                    var t = this, o = arguments;
                    return new Promise(function(e, a) {
                        var n = g.apply(t, o);
                        function i(t) {
                            c(n, e, a, i, r, "next", t);
                        }
                        function r(t) {
                            c(n, e, a, i, r, "throw", t);
                        }
                        i(void 0);
                    });
                };
            }
            var g = getApp(), a = s("e5c8"), n = {
                data: function() {
                    return {
                        module_name: g.globalData.module_name,
                        showAlert_login: !1,
                        showAlert: !1,
                        userinfo: r.getStorageSync("userinfo"),
                        setting: r.getStorageSync("setting"),
                        wxCode: "",
                        systemtype: "",
                        demoHtmlwm: "",
                        demoHtmlsc: "",
                        h5: "",
                        cz: 0,
                        loadposter: 0,
                        appid_type: 0,
                        qudao_tkl: "",
                        is_qudao_tkl: 0,
                        showAlert_taobaoauth: !1,
                        elm_url: [],
                        meituan_url: [],
                        show_poster: !1,
                        currentIndex: 0,
                        tabs: [ "外卖", "商超" ],
                        mainHeight: 0,
                        pageLoading: !0,
                        pagebgcolor: r.getStorageSync("setting").waimaitt_meituanwm_bgcolor,
                        qrcode: "",
                        mtwmqrcode: "",
                        mtscqrcode: "",
                        mtwmposter: "",
                        mtscposter: "",
                        width: 750,
                        cheight: 1334,
                        widthIn: 300,
                        heightIn: 500,
                        bgColor: "#7ACBDC",
                        bgImg: "",
                        imgSrc: null,
                        rpx2px: 1,
                        context: null,
                        multiple: 1,
                        showToast_login: !1,
                        footerCurrent: 0,
                        page: {},
                        url: "",
                        title: "",
                        op: "",
                        home_url: "",
                        elmwm_act_id: 0,
                        mtpic: 0,
                        contact_title: "",
                        contact_title_text: "",
                        contact_title_desc: "",
                        contact_id: "",
                        contact_type: "",
                        contact_thumb: "",
                        pageKey: "",
                        height: "",
                        tabBar: [],
                        sharetitle: "",
                        sharepic: "",
                        speakerMsgs: [],
                        list: []
                    };
                },
                components: {
                    gracePage: (s("5f91"), function() {
                        s.e("graceUI/components/gracePage").then(function() {
                            return resolve(s("1021"));
                        }.bind(null, s)).catch(s.oe);
                    }),
                    graceHeader: function() {
                        s.e("graceUI/components/graceHeader").then(function() {
                            return resolve(s("266b"));
                        }.bind(null, s)).catch(s.oe);
                    },
                    graceNavBar: function() {
                        s.e("graceUI/components/graceNavBar").then(function() {
                            return resolve(s("a631"));
                        }.bind(null, s)).catch(s.oe);
                    },
                    graceShade: function() {
                        s.e("graceUI/components/graceShade").then(function() {
                            return resolve(s("31ed"));
                        }.bind(null, s)).catch(s.oe);
                    },
                    graceDialog: function() {
                        s.e("graceUI/components/graceDialog").then(function() {
                            return resolve(s("f85d"));
                        }.bind(null, s)).catch(s.oe);
                    },
                    graceLoading: function() {
                        s.e("graceUI/components/graceLoading").then(function() {
                            return resolve(s("1d04"));
                        }.bind(null, s)).catch(s.oe);
                    },
                    graceAnalysis: function() {
                        s.e("graceUI/components/graceAnalysis").then(function() {
                            return resolve(s("b6ee"));
                        }.bind(null, s)).catch(s.oe);
                    },
                    graceSpeaker: function() {
                        s.e("graceUI/components/graceSpeaker2").then(function() {
                            return resolve(s("a90e"));
                        }.bind(null, s)).catch(s.oe);
                    }
                },
                props: {},
                onShow: function() {
                    var n = this;
                    return e(o.default.mark(function t() {
                        var e, a;
                        return o.default.wrap(function(t) {
                            for (;;) switch (t.prev = t.next) {
                              case 0:
                                return t.next = 2, n.$onLaunched;

                              case 2:
                                for (n.tabBar = r.getStorageSync("tabbar"), e = 0; e < n.tabBar.list.length; e++) -1 != n.tabBar.list[e].url.indexOf("meituan/index") && (n.pageKey = e);
                                n.userinfo = r.getStorageSync("userinfo"), -1 != r.getStorageSync("index_nav").indexOf("mtsc") || -1 != r.getStorageSync("index_nav").indexOf("sc") ? n.currentIndex = 1 : r.getStorageSync("index_nav") && (n.currentIndex = 0), 
                                1 == n.currentIndex ? (n.h5 = r.getStorageSync("mtsc_h5"), n.load_mtscqrcode2()) : (n.h5 = r.getStorageSync("mtwm_h5"), 
                                n.load_mtwmqrcode2()), n.meituan_urlFun2(), a = g.globalData.util.url("entry/wxapp/api", {
                                    m: g.globalData.module_name,
                                    o: "subscribemessage"
                                }), r.request({
                                    url: a,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: r.getStorageSync("openid"),
                                        type: 2
                                    },
                                    success: function(t) {
                                        r.setStorageSync("warn_daynum", t.data.warm_daynum);
                                    }
                                }), r.hideLoading();

                              case 12:
                              case "end":
                                return t.stop();
                            }
                        }, t);
                    }))();
                },
                onShareAppMessage: function() {
                    var t = "pages/meituan/index?uid=" + r.getStorageSync("userinfo").user_id;
                    return {
                        title: this.sharetitle,
                        imageUrl: this.sharepic,
                        path: t
                    };
                },
                onReady: function() {
                    var e = this;
                    setTimeout(function() {
                        r.createSelectorQuery().select("#gBody").fields({
                            size: !0
                        }, function(t) {
                            e.mainHeight = t.height;
                        }).exec();
                    }, 1e3), setTimeout(function() {
                        e.pageLoading = !1;
                    }, 1500);
                },
                onPullDownRefresh: function() {},
                onLoad: function(n) {
                    var i = this;
                    return e(o.default.mark(function t() {
                        var e, a;
                        return o.default.wrap(function(t) {
                            for (;;) switch (t.prev = t.next) {
                              case 0:
                                return t.next = 2, i.$onLaunched;

                              case 2:
                                (e = i).setting = r.getStorageSync("setting"), e.tabBar = r.getStorageSync("tabbar"), 
                                e.userinfo = r.getStorageSync("userinfo"), e.demoHtmlwm = r.getStorageSync("setting").waimaitt_elmwm_notice, 
                                e.demoHtmlsc = r.getStorageSync("setting").waimaitt_elmsc_notice, r.hideLoading(), 
                                i.module_name = g.globalData.module_name, "sc" == n.to && (i.currentIndex = 1), 
                                i.mtwmqrcode = r.getStorageSync("mtwmqrcode"), i.mtscqrcode = r.getStorageSync("mtscqrcode"), 
                                i.mtwmposter = r.getStorageSync("mtwmposter"), i.mtscposter = r.getStorageSync("mtscposter"), 
                                i.pagebgcolor = r.getStorageSync("setting").waimaitt_meituanwm_bgcolor, i.bgImg = r.getStorageSync("setting").waimaitt_meituanwm_poster ? r.getStorageSync("setting").waimaitt_meituanwm_poster : r.getStorageSync("setting").static_domain + "addons/" + i.module_name + "/static/images/poster/meituan.png", 
                                a = g.globalData.util.url("entry/wxapp/speakermsgs", {
                                    m: g.globalData.module_name
                                }), r.request({
                                    url: a,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: r.getStorageSync("openid"),
                                        type: 1
                                    },
                                    success: function(t) {
                                        e.speakerMsgs = t.data.speakerMsgs;
                                    }
                                }), a = g.globalData.util.url("entry/wxapp/meituanelmlist", {
                                    m: g.globalData.module_name
                                }), r.request({
                                    url: a,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: r.getStorageSync("openid"),
                                        type: 2
                                    },
                                    success: function(t) {
                                        e.list = t.data.meituanelmlist;
                                    }
                                });

                              case 23:
                              case "end":
                                return t.stop();
                            }
                        }, t);
                    }))();
                },
                methods: {
                    change: function(t) {
                        var e = this;
                        console.log(this.tabBar.list), console.log(this.tabBar.list[t]);
                        var a = this.tabBar.list[t];
                        if (console.log(a), this.pageKey = t, r.setStorageSync("pageKey", t), r.getStorageSync("userinfo").nickname || 1 != r.getStorageSync("setting").login_type) {
                            if (1 == a.adtype) {
                                if (1 == a.appid_type && r.getStorageSync("mtwm_url")) return void r.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: r.getStorageSync("mtwm_url")
                                });
                                if (1 == a.appid_type && !r.getStorageSync("mtwm_url")) return e.appid_type = 1, 
                                void e.meituan_urlFun();
                                if (2 == a.appid_type && r.getStorageSync("mtsc_url")) return void r.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: r.getStorageSync("mtsc_url")
                                });
                                if (2 == a.appid_type && !r.getStorageSync("mtsc_url")) return e.appid_type = 2, 
                                void e.meituan_urlFun();
                                if (3 == a.appid_type && r.getStorageSync("elmwm_url")) return r.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: r.getStorageSync("elmwm_url")
                                }), e.updatepid(), void console.log(r.getStorageSync("elmwm_url"));
                                if (3 == a.appid_type && !r.getStorageSync("elmwm_url")) return e.appid_type = 3, 
                                void e.gettaobaoauth();
                                if (4 == a.appid_type && r.getStorageSync("elmsc_url")) return r.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: r.getStorageSync("elmsc_url")
                                }), e.updatepid(), void console.log(r.getStorageSync("elmsc_url"));
                                if (4 == a.appid_type && !r.getStorageSync("elmsc_url")) return console.log("ccc"), 
                                e.appid_type = 4, void e.gettaobaoauth();
                                if (0 == a.appid_type) return void r.navigateToMiniProgram({
                                    appId: a.appid,
                                    path: a.path
                                });
                            }
                            if (5 != a.adtype) {
                                if (4 == a.adtype) {
                                    if (r.setStorageSync("index_nav", a.url), -1 == a.url.indexOf("../index/") && -1 == a.url.indexOf("../user/") && -1 == a.url.indexOf("../movie/") && -1 == a.url.indexOf("../shop/") && -1 == a.url.indexOf("../kefu/")) return -1 != a.url.indexOf("../../../pages/index/") || -1 != a.url.indexOf("../../../pages/user/") || -1 != a.url.indexOf("../../../pages/kefu/") ? (console.log(a.url), 
                                    void r.redirectTo({
                                        url: a.url
                                    })) : -1 != a.url.indexOf("../../../pages/meituan/") || -1 != a.url.indexOf("../../../pages/elm/") || -1 != a.url.indexOf("../../../pages/eat/") ? (n = a.url.replace("../../../pages/", "../"), 
                                    console.log(a.url), console.log(n), void r.navigateTo({
                                        url: n
                                    })) : -1 != a.url.indexOf("../../pagesA/pages/movie/") || -1 != a.url.indexOf("../../pagesA/pages/shop/") ? (n = a.url.replace("../../pagesA/pages/", "../../../pages/"), 
                                    console.log(a.url), console.log(n), void r.redirectTo({
                                        url: n
                                    })) : -1 != a.url.indexOf("../../pagesA/pages/movieA/") || -1 != a.url.indexOf("../../pagesA/pages/shopA/") || -1 != a.url.indexOf("../../pagesA/pages/meituan/") || -1 != a.url.indexOf("../../pagesA/pages/elm/") || -1 != a.url.indexOf("../../pagesA/pages/eat/") || -1 != a.url.indexOf("../../pagesA/pages/userA/") ? (n = a.url.replace("../../pagesA/pages/", "../"), 
                                    console.log(a.url), console.log(n), void r.navigateTo({
                                        url: n
                                    })) : (-1 != a.url.indexOf("../meituan/") || -1 != a.url.indexOf("../elm/") || a.url.indexOf("../eat/"), 
                                    console.log(a.url), void r.navigateTo({
                                        url: a.url
                                    }));
                                    var n = a.url.replace("../", "../../../pages/");
                                    return console.log(a.url), console.log(n), void r.redirectTo({
                                        url: n
                                    });
                                }
                                2 != a.adtype && 3 != a.adtype || (n = g.globalData.util.url("entry/wxapp/api", {
                                    m: g.globalData.module_name,
                                    o: "ad_kefubind"
                                }), r.request({
                                    url: n,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        adtype: "ad",
                                        adid: a.adid,
                                        openid: r.getStorageSync("openid")
                                    },
                                    success: function(t) {}
                                }), this.contact_title_desc = "", this.contact_type = "ad", this.contact_id = a.adid, 
                                this.contact_title = a.title, this.contact_title_text = a.title_text, this.contact_title_desc = a.title_desc, 
                                this.contact_thumb = r.getStorageSync("setting").dianwo, this.showDialog3());
                            } else r.navigateTo({
                                url: "../movieA/webview?return_url=" + encodeURIComponent(a.url)
                            });
                        } else this.showDialog2();
                    },
                    fatherHeight: function(t) {
                        this.height = t;
                    },
                    showDialog1: function() {
                        this.$refs.showAlert_taobaoauth.open();
                    },
                    closeDialog1: function() {
                        this.$refs.showAlert_taobaoauth.hide();
                    },
                    showDialog2: function() {
                        this.$refs.showAlert_login.open();
                    },
                    closeDialog2: function() {
                        this.$refs.showAlert_login.hide();
                    },
                    showDialog3: function() {
                        this.$refs.showAlert.open();
                    },
                    closeDialog3: function() {
                        this.$refs.showAlert.hide();
                    },
                    tapButton: function() {
                        1 == this.currentIndex ? this.h5 = r.getStorageSync("mtsc_h5") : this.h5 = r.getStorageSync("mtwm_h5"), 
                        r.setClipboardData({
                            data: this.h5,
                            success: function(t) {
                                r.showToast({
                                    title: "复制成功",
                                    icon: "none"
                                });
                            }
                        });
                    },
                    copy_wm: function() {
                        var t = 1 == r.getStorageSync("setting").poster_type ? r.getStorageSync("mtwm_h5") : r.getStorageSync("setting").waimaitt_meituanwm_tuantext_c;
                        r.setClipboardData({
                            data: t,
                            success: function(t) {
                                r.showToast({
                                    title: "复制成功",
                                    icon: "none"
                                });
                            }
                        });
                    },
                    copy_sc: function() {
                        var t = 1 == r.getStorageSync("setting").poster_type ? r.getStorageSync("mtsc_h5") : r.getStorageSync("setting").waimaitt_meituansc_tuantext_c;
                        r.setClipboardData({
                            data: t,
                            success: function(t) {
                                r.showToast({
                                    title: "复制成功",
                                    icon: "none"
                                });
                            }
                        });
                    },
                    userlogin: function() {
                        !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : this.closeDialog2();
                    },
                    login: function(e) {
                        var a = this;
                        this.closeDialog2(), r.getSetting({
                            success: function(t) {
                                t.authSetting["scope.userInfo"] ? r.getUserInfo({
                                    success: function(t) {
                                        a.userAuth(e, t.userInfo, "login");
                                    }
                                }) : a.userAuth(e, null, "login");
                            }
                        });
                    },
                    getWxCode: function() {
                        var e = this;
                        wx.login({
                            success: function(t) {
                                e.wxCode = t.code;
                            }
                        });
                    },
                    getUserProfile: function() {
                        var a = this;
                        wx.getUserProfile({
                            desc: "请完善会员资料",
                            success: function(t) {
                                console.log(t.userInfo);
                                var e = g.globalData.util.url("entry/wxapp/userinfo2", {
                                    m: g.globalData.module_name
                                }), t = {
                                    avatarUrl: t.userInfo.avatarUrl,
                                    nickName: t.userInfo.nickName,
                                    openid: r.getStorageSync("openid")
                                };
                                r.request({
                                    url: e,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: t,
                                    success: function(t) {
                                        1 == t.data.status && (r.setStorageSync("userinfo", t.data.data.userinfo), a.userinfo = t.data.data.userinfo, 
                                        a.closeDialog2(), r.showToast({
                                            title: "登录成功",
                                            icon: "none"
                                        }));
                                    }
                                });
                            }
                        });
                    },
                    userAuth: function(a, t, n) {
                        var i = this;
                        "getUserInfo:ok" == a.detail.errMsg ? wx.login({
                            success: function(t) {
                                var e = g.globalData.util.url("entry/wxapp/api", {
                                    m: g.globalData.module_name,
                                    o: "userinfo"
                                }), t = {
                                    code: t.code,
                                    encryptedData: a.detail.encryptedData,
                                    iv: a.detail.iv,
                                    openid: r.getStorageSync("openid"),
                                    invite_uid: wx.getStorageSync("invite_uid")
                                };
                                r.request({
                                    url: e,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: t,
                                    success: function(t) {
                                        1 == t.data.status && (t = g.globalData.crypt.Decrypt(t.data.data.data, t.data.data.key), 
                                        t = JSON.parse(t), r.setStorageSync("userinfo", t.userinfo), i.userinfo = t.userinfo, 
                                        "login" == n && (i.closeDialog2(), r.showToast({
                                            title: "登录成功",
                                            icon: "none"
                                        })), 1 == i.currentIndex ? i.load_mtscqrcode2() : i.load_mtwmqrcode2());
                                    }
                                });
                            }
                        }) : r.showToast({
                            title: "获取用户信息失败",
                            icon: "none"
                        });
                    },
                    closeAlert: function() {
                        this.closeDialog2();
                    },
                    meituan_urlFun: function() {
                        var a = this, n = this;
                        if (1 == n.appid_type && r.getStorageSync("mtwm_url")) return 1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                            urls: [ r.getStorageSync("mtwmqrcode2") ]
                        }) : r.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: r.getStorageSync("mtwm_url")
                        }), void r.hideLoading();
                        if (2 == n.appid_type && r.getStorageSync("mtsc_url")) return 1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                            urls: [ r.getStorageSync("mtscqrcode2") ]
                        }) : r.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: r.getStorageSync("mtsc_url")
                        }), void r.hideLoading();
                        var t = g.globalData.util.url("entry/wxapp/qrcode_mtelm2", {
                            m: g.globalData.module_name,
                            o: "qrcode_mtelm"
                        });
                        r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                appid_type: n.appid_type
                            },
                            success: function(t) {
                                var e = g.globalData.crypt.Decrypt(t.data.data.data, t.data.data.key), e = JSON.parse(e);
                                console.log(e), n.sharetitle = t.data.sharetitle, n.sharepic = t.data.sharepic, 
                                1 == n.appid_type && (r.setStorageSync("mtwm_url", e.mtwm_url), r.setStorageSync("mtwm_h5", e.mtwm_h5), 
                                r.setStorageSync("mtwmqrcode2", e.mtwm_qrcode), a.h5 = e.mtwm_h5, 1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                                    urls: [ r.getStorageSync("mtwmqrcode2") ]
                                }) : r.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: e.mtwm_url
                                }), r.hideLoading()), 2 == n.appid_type && (r.setStorageSync("mtsc_url", e.mtsc_url), 
                                r.setStorageSync("mtsc_h5", e.mtsc_h5), r.setStorageSync("mtscqrcode2", e.mtsc_qrcode), 
                                a.h5 = e.mtsc_h5, 1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                                    urls: [ r.getStorageSync("mtscqrcode2") ]
                                }) : r.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: e.mtsc_url
                                }), r.hideLoading());
                            }
                        });
                    },
                    meituan_urlFun2: function() {
                        var t, e = this, a = this;
                        0 == this.currentIndex && r.getStorageSync("mtwmqrcode2") || 1 == this.currentIndex && r.getStorageSync("mtscqrcode2") || (1 == this.currentIndex ? a.appid_type = 2 : a.appid_type = 1, 
                        t = g.globalData.util.url("entry/wxapp/api", {
                            m: g.globalData.module_name,
                            o: "qrcode_mtelm"
                        }), r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                appid_type: a.appid_type,
                                type: 1
                            },
                            success: function(t) {
                                t = g.globalData.crypt.Decrypt(t.data.data.data, t.data.data.key), t = JSON.parse(t);
                                console.log(t), 1 == a.appid_type && (r.setStorageSync("mtwm_h5", t.mtwm_h5), r.setStorageSync("mtwmqrcode2", t.mtwm_qrcode), 
                                e.h5 = t.mtwm_h5), 2 == a.appid_type && (r.setStorageSync("mtsc_h5", t.mtsc_h5), 
                                r.setStorageSync("mtscqrcode2", t.mtsc_qrcode), e.h5 = t.mtsc_h5);
                            }
                        }));
                    },
                    lingnextwm: function() {
                        var t;
                        r.getStorageSync("userinfo").nickname || 1 != r.getStorageSync("setting").login_type || !wx.getUserProfile ? (r.showLoading({
                            title: "加载中...",
                            mask: !1
                        }), this.setting.waimaitt_meituanwm_lingnextactid ? r.getStorageSync("waimaitt_meituanwm_lingnexturl") ? (r.navigateToMiniProgram({
                            appId: r.getStorageSync("setting").waimaitt_meituanwm_lingnextappid,
                            path: r.getStorageSync("waimaitt_meituanwm_lingnexturl")
                        }), r.hideLoading()) : (t = g.globalData.util.url("entry/wxapp/lingmeituannext_url", {
                            m: g.globalData.module_name
                        }), r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                actid: this.setting.waimaitt_meituanwm_lingnextactid
                            },
                            success: function(t) {
                                r.setStorageSync("waimaitt_meituanwm_lingnexturl", t.data.miniProgramPath), r.navigateToMiniProgram({
                                    appId: r.getStorageSync("setting").waimaitt_meituanwm_lingnextappid,
                                    path: t.data.miniProgramPath
                                }), r.hideLoading();
                            }
                        })) : (r.navigateToMiniProgram({
                            appId: r.getStorageSync("setting").waimaitt_meituanwm_lingnextappid,
                            path: r.getStorageSync("setting").waimaitt_meituanwm_lingnextpath
                        }), r.hideLoading())) : this.showDialog2();
                    },
                    lingnextsc: function() {
                        var t;
                        r.getStorageSync("userinfo").nickname || 1 != r.getStorageSync("setting").login_type || !wx.getUserProfile ? (r.showLoading({
                            title: "加载中...",
                            mask: !1
                        }), this.setting.waimaitt_meituansc_lingnextactid ? r.getStorageSync("waimaitt_meituansc_lingnexturl") ? (r.navigateToMiniProgram({
                            appId: r.getStorageSync("setting").waimaitt_meituansc_lingnextappid,
                            path: r.getStorageSync("waimaitt_meituansc_lingnexturl")
                        }), r.hideLoading()) : (t = g.globalData.util.url("entry/wxapp/lingmeituannext_url", {
                            m: g.globalData.module_name
                        }), r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                actid: this.setting.waimaitt_meituansc_lingnextactid
                            },
                            success: function(t) {
                                r.setStorageSync("waimaitt_meituansc_lingnexturl", t.data.miniProgramPath), r.navigateToMiniProgram({
                                    appId: r.getStorageSync("setting").waimaitt_meituansc_lingnextappid,
                                    path: t.data.miniProgramPath
                                }), r.hideLoading();
                            }
                        })) : (r.navigateToMiniProgram({
                            appId: r.getStorageSync("setting").waimaitt_meituansc_lingnextappid,
                            path: r.getStorageSync("setting").waimaitt_meituansc_lingnextpath
                        }), r.hideLoading())) : this.showDialog2();
                    },
                    gethongbao_mtwm: function() {
                        var a = this;
                        if (r.getStorageSync("userinfo").nickname || 1 != r.getStorageSync("setting").login_type || !wx.getUserProfile) {
                            if (!(0 < r.getStorageSync("setting").warn_tplid.length && r.getStorageSync("warn_daynum") < r.getStorageSync("setting").warn_tpl_daynum)) {
                                r.showLoading({
                                    title: "加载中...",
                                    mask: !1
                                });
                                var t = g.globalData.util.url("entry/wxapp/api", {
                                    m: g.globalData.module_name,
                                    o: "subscribemessage"
                                });
                                return (r.request({
                                    url: t,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: r.getStorageSync("openid"),
                                        type: 2
                                    },
                                    success: function(t) {
                                        r.setStorageSync("warn_daynum", t.data.warm_daynum);
                                    }
                                }), 1 == a.currentIndex && r.getStorageSync("mtsc_url")) ? (1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                                    urls: [ r.getStorageSync("mtscqrcode2") ]
                                }) : r.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: r.getStorageSync("mtsc_url")
                                }), void r.hideLoading()) : 1 != a.currentIndex || r.getStorageSync("mtsc_url") ? 0 == a.currentIndex && r.getStorageSync("mtwm_url") ? (1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                                    urls: [ r.getStorageSync("mtwmqrcode2") ]
                                }) : r.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: r.getStorageSync("mtwm_url")
                                }), void r.hideLoading()) : 0 != a.currentIndex || r.getStorageSync("mtwm_url") ? void 0 : (a.appid_type = 1, 
                                void a.meituan_urlFun()) : (a.appid_type = 2, void a.meituan_urlFun());
                            }
                            wx.requestSubscribeMessage({
                                tmplIds: r.getStorageSync("setting").warn_tplid,
                                success: function(t) {
                                    if (console.log(t), "reject" != t[r.getStorageSync("setting").warn_yhq_tplid]) return r.showLoading({
                                        title: "加载中...",
                                        mask: !1
                                    }), e = g.globalData.util.url("entry/wxapp/api", {
                                        m: g.globalData.module_name,
                                        o: "subscribemessage"
                                    }), r.request({
                                        url: e,
                                        method: "POST",
                                        header: {
                                            "content-type": "application/x-www-form-urlencoded"
                                        },
                                        data: {
                                            openid: r.getStorageSync("openid"),
                                            type: 1
                                        },
                                        success: function(t) {
                                            r.setStorageSync("warn_daynum", t.data.warm_daynum);
                                        }
                                    }), 1 == a.currentIndex && r.getStorageSync("mtsc_url") ? (1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                                        urls: [ r.getStorageSync("mtscqrcode2") ]
                                    }) : r.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: r.getStorageSync("mtsc_url")
                                    }), void r.hideLoading()) : 1 != a.currentIndex || r.getStorageSync("mtsc_url") ? 0 == a.currentIndex && r.getStorageSync("mtwm_url") ? (1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                                        urls: [ r.getStorageSync("mtwmqrcode2") ]
                                    }) : r.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: r.getStorageSync("mtwm_url")
                                    }), void r.hideLoading()) : 0 != a.currentIndex || r.getStorageSync("mtwm_url") ? void 0 : (a.appid_type = 1, 
                                    void a.meituan_urlFun()) : (a.appid_type = 2, void a.meituan_urlFun());
                                    if (r.showLoading({
                                        title: "加载中...",
                                        mask: !1
                                    }), 1 == a.currentIndex && r.getStorageSync("mtsc_url")) return 1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                                        urls: [ r.getStorageSync("mtscqrcode2") ]
                                    }) : r.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: r.getStorageSync("mtsc_url")
                                    }), void r.hideLoading();
                                    if (1 == a.currentIndex && !r.getStorageSync("mtsc_url")) return a.appid_type = 2, 
                                    void a.meituan_urlFun();
                                    if (0 == a.currentIndex && r.getStorageSync("mtwm_url")) return 1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                                        urls: [ r.getStorageSync("mtwmqrcode2") ]
                                    }) : r.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: r.getStorageSync("mtwm_url")
                                    }), void r.hideLoading();
                                    if (0 == a.currentIndex && !r.getStorageSync("mtwm_url")) return a.appid_type = 1, 
                                    void a.meituan_urlFun();
                                    var e = g.globalData.util.url("entry/wxapp/api", {
                                        m: g.globalData.module_name,
                                        o: "subscribemessage"
                                    });
                                    r.request({
                                        url: e,
                                        method: "POST",
                                        header: {
                                            "content-type": "application/x-www-form-urlencoded"
                                        },
                                        data: {
                                            openid: r.getStorageSync("openid"),
                                            type: 1
                                        },
                                        success: function(t) {
                                            r.setStorageSync("warn_daynum", t.data.warm_daynum);
                                        }
                                    });
                                },
                                fail: function() {
                                    return r.showLoading({
                                        title: "加载中...",
                                        mask: !1
                                    }), 1 == a.currentIndex && r.getStorageSync("mtsc_url") ? (1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                                        urls: [ r.getStorageSync("mtscqrcode2") ]
                                    }) : r.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: r.getStorageSync("mtsc_url")
                                    }), void r.hideLoading()) : 1 != a.currentIndex || r.getStorageSync("mtsc_url") ? 0 == a.currentIndex && r.getStorageSync("mtwm_url") ? (1 == r.getStorageSync("setting").mtpic && 1 == r.getStorageSync("setting").poster_type ? r.previewImage({
                                        urls: [ r.getStorageSync("mtwmqrcode2") ]
                                    }) : r.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: r.getStorageSync("mtwm_url")
                                    }), void r.hideLoading()) : 0 != a.currentIndex || r.getStorageSync("mtwm_url") ? void 0 : (a.appid_type = 1, 
                                    void a.meituan_urlFun()) : (a.appid_type = 2, void a.meituan_urlFun());
                                }
                            });
                        } else this.showDialog2();
                    },
                    close_poster: function() {
                        this.show_poster = !1;
                    },
                    previewImage: function(t) {
                        r.previewImage({
                            urls: [ t.currentTarget.dataset.src ],
                            current: 0
                        });
                    },
                    navChange: function(t) {
                        r.setStorageSync("index_nav", ""), this.loadposter = 0, this.currentIndex = t, 1 == this.currentIndex ? (this.pagebgcolor = r.getStorageSync("setting").waimaitt_meituansc_bgcolor, 
                        this.bgImg = r.getStorageSync("setting").waimaitt_meituansc_poster ? r.getStorageSync("setting").waimaitt_meituansc_poster : r.getStorageSync("setting").static_domain + "addons/" + this.module_name + "/static/images/poster/meituan.png", 
                        this.qrcode = r.getStorageSync("mtscqrcode"), this.meituan_urlFun2(), this.load_mtscqrcode2()) : (this.pagebgcolor = r.getStorageSync("setting").waimaitt_meituanwm_bgcolor, 
                        this.bgImg = r.getStorageSync("setting").waimaitt_meituanwm_poster ? r.getStorageSync("setting").waimaitt_meituanwm_poster : r.getStorageSync("setting").static_domain + "addons/" + this.module_name + "/static/images/poster/meituan.png", 
                        this.qrcode = r.getStorageSync("mtwmqrcode"), this.meituan_urlFun2(), this.load_mtwmqrcode2());
                    },
                    load_mtwmqrcode: function() {
                        var a = this;
                        this.mtwmqrcode = "../../../static/images/loadding-max.gif";
                        var n = this, t = g.globalData.util.url("entry/wxapp/qrcode2", {
                            m: g.globalData.module_name
                        });
                        r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                type: "mtwm",
                                uid: r.getStorageSync("userinfo").user_id
                            },
                            success: function(t) {
                                console.log(t);
                                var e = g.globalData.crypt.Decrypt(t.data.data.data, t.data.data.key), e = JSON.parse(e);
                                console.log(e), n.sharetitle = t.data.sharetitle, n.sharepic = t.data.sharepic, 
                                e.poster_url && e.data ? (n.mtwmqrcode = e.data, r.setStorageSync("mtwmqrcode", e.data), 
                                r.setStorageSync("mtwmposter", e.poster_url)) : n.mtwmqrcode = r.getStorageSync("setting").static_domain + "addons/" + a.module_name + "/static/images/mtwm.png";
                            }
                        });
                    },
                    load_mtscqrcode: function() {
                        var a = this;
                        this.mtscqrcode = "../../../static/images/loadding-max.gif";
                        var n = this, t = g.globalData.util.url("entry/wxapp/qrcode2", {
                            m: g.globalData.module_name
                        });
                        r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                type: "mtsc",
                                uid: r.getStorageSync("userinfo").user_id
                            },
                            success: function(t) {
                                var e = g.globalData.crypt.Decrypt(t.data.data.data, t.data.data.key), e = JSON.parse(e);
                                n.sharetitle = t.data.sharetitle, n.sharepic = t.data.sharepic, e.poster_url && e.data ? (n.mtscqrcode = e.data, 
                                r.setStorageSync("mtscqrcode", e.data), r.setStorageSync("mtscposter", e.poster_url)) : n.mtscqrcode = r.getStorageSync("setting").static_domain + "addons/" + a.module_name + "/static/images/mtsc.png";
                            }
                        });
                    },
                    load_mtwmqrcode2: function() {
                        var a, t;
                        r.getStorageSync("mtwmqrcode") || (this.mtwmqrcode = "../../../static/images/loadding-max.gif", 
                        a = this, t = g.globalData.util.url("entry/wxapp/qrcode2", {
                            m: g.globalData.module_name
                        }), r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                type: "mtwm",
                                uid: r.getStorageSync("userinfo").user_id
                            },
                            success: function(t) {
                                console.log(t);
                                var e = g.globalData.crypt.Decrypt(t.data.data.data, t.data.data.key), e = JSON.parse(e);
                                console.log(e), a.sharetitle = t.data.sharetitle, a.sharepic = t.data.sharepic, 
                                a.mtwmqrcode = e.data, r.setStorageSync("mtwmqrcode", e.data), -1 != e.poster_url.indexOf("elmsc1") && r.getStorageSync("mtwmposter") || r.setStorageSync("mtwmposter", e.poster_url);
                            }
                        }));
                    },
                    load_mtscqrcode2: function() {
                        var a, t;
                        r.getStorageSync("mtscqrcode") || (this.mtscqrcode = "../../../static/images/loadding-max.gif", 
                        a = this, t = g.globalData.util.url("entry/wxapp/qrcode2", {
                            m: g.globalData.module_name
                        }), r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                type: "mtsc",
                                uid: r.getStorageSync("userinfo").user_id
                            },
                            success: function(t) {
                                var e = g.globalData.crypt.Decrypt(t.data.data.data, t.data.data.key), e = JSON.parse(e);
                                a.mtscqrcode = e.data, a.sharetitle = t.data.sharetitle, a.sharepic = t.data.sharepic, 
                                r.setStorageSync("mtscqrcode", e.data), -1 != e.poster_url.indexOf("elmsc1") && r.getStorageSync("mtscposter") || r.setStorageSync("mtscposter", e.poster_url);
                            }
                        }));
                    },
                    swiperChange: function(t) {
                        r.setStorageSync("index_nav", ""), this.loadposter = 0;
                        t = t.detail.current;
                        this.currentIndex = t, 1 == this.currentIndex ? (this.pagebgcolor = r.getStorageSync("setting").waimaitt_meituansc_bgcolor, 
                        this.bgImg = r.getStorageSync("setting").waimaitt_meituasc_poster ? r.getStorageSync("setting").waimaitt_meituansc_poster : r.getStorageSync("setting").static_domain + "addons/" + this.module_name + "/static/images/poster/meituan.png", 
                        this.qrcode = r.getStorageSync("mtscqrcode"), this.meituan_urlFun2(), this.load_mtscqrcode2(), 
                        this.mtscposter ? this.imgSrc = this.mtscposter : this.imgSrc = "") : (this.pagebgcolor = r.getStorageSync("setting").waimaitt_meituanwm_bgcolor, 
                        this.bgImg = r.getStorageSync("setting").waimaitt_meituawm_poster ? r.getStorageSync("setting").waimaitt_meituanwm_poster : r.getStorageSync("setting").static_domain + "addons/" + this.module_name + "/static/images/poster/meituan.png", 
                        this.qrcode = r.getStorageSync("mtwmqrcode"), this.meituan_urlFun2(), this.load_mtwmqrcode2(), 
                        this.mtwmposter ? this.imgSrc = this.mtwmposter : this.imgSrc = "");
                    },
                    goback: function() {
                        r.navigateBack({});
                    },
                    gohome: function() {
                        r.navigateTo({
                            url: "../index/index"
                        });
                    },
                    getposter_mtwm1: function() {
                        var e;
                        r.getStorageSync("userinfo").nickname || 1 != r.getStorageSync("setting").login_type || !wx.getUserProfile ? 1 == (e = this).currentIndex ? r.getStorageSync("mtscposter") && -1 != r.getStorageSync("mtscposter").indexOf("mp.weixin") ? r.navigateTo({
                            url: "../movieA/webview?return_url=" + encodeURIComponent(r.getStorageSync("mtscposter"))
                        }) : (r.showLoading({
                            title: "加载中...",
                            mask: !1
                        }), r.getStorageSync("mtscposter") || r.setStorageSync("mtscposter", r.getStorageSync("setting").static_domain + "addons/" + e.module_name + "/static/images/poster/1.png"), 
                        r.getImageInfo({
                            src: r.getStorageSync("mtscposter"),
                            success: function(t) {
                                e.show_poster = !0, e.imgSrc = r.getStorageSync("mtscposter"), e.h5 = r.getStorageSync("mtsc_h5"), 
                                r.hideLoading();
                            },
                            fail: function(t) {
                                e.loadposter = 1, e.getposter_mtwm();
                            }
                        })) : r.getStorageSync("mtwmposter") && -1 != r.getStorageSync("mtwmposter").indexOf("mp.weixin") ? r.navigateTo({
                            url: "../movieA/webview?return_url=" + encodeURIComponent(r.getStorageSync("mtwmposter"))
                        }) : (r.showLoading({
                            title: "加载中...",
                            mask: !1
                        }), r.getStorageSync("mtwmposter") || r.setStorageSync("mtwmposter", r.getStorageSync("setting").static_domain + "addons/" + e.module_name + "/static/images/poster/1.png"), 
                        r.getImageInfo({
                            src: r.getStorageSync("mtwmposter"),
                            success: function(t) {
                                e.show_poster = !0, e.imgSrc = r.getStorageSync("mtwmposter"), e.h5 = r.getStorageSync("mtwm_h5"), 
                                r.hideLoading();
                            },
                            fail: function(t) {
                                e.loadposter = 1, e.getposter_mtwm();
                            }
                        })) : this.showDialog2();
                    },
                    getposter_mtwm: function() {
                        var e = this;
                        1 == this.currentIndex ? (e.qrcode = r.getStorageSync("mtscqrcode"), r.getStorageSync("mtscposter") ? -1 != r.getStorageSync("mtscposter").indexOf("mp.weixin") || r.getImageInfo({
                            src: r.getStorageSync("mtscposter"),
                            success: function(t) {
                                e.imgSrc = r.getStorageSync("mtscposter"), e.h5 = r.getStorageSync("mtsc_h5");
                            },
                            fail: function(t) {
                                e.context = r.createCanvasContext("graceCanvas"), e.initSize(), setTimeout(function() {
                                    e.draw();
                                }, 1e3);
                            }
                        }) : (e.context = r.createCanvasContext("graceCanvas"), e.initSize(), setTimeout(function() {
                            e.draw();
                        }, 1e3))) : (e.qrcode = r.getStorageSync("mtwmqrcode"), r.getStorageSync("mtwmposter") ? -1 != r.getStorageSync("mtwmposter").indexOf("mp.weixin") || r.getImageInfo({
                            src: r.getStorageSync("mtwmposter"),
                            success: function(t) {
                                e.imgSrc = r.getStorageSync("mtwmposter"), e.h5 = r.getStorageSync("mtwm_h5");
                            },
                            fail: function(t) {
                                console.log(r.getStorageSync("mtwmposter")), e.context = r.createCanvasContext("graceCanvas"), 
                                e.initSize(), setTimeout(function() {
                                    e.draw();
                                }, 1e3);
                            }
                        }) : (e.context = r.createCanvasContext("graceCanvas"), e.initSize(), setTimeout(function() {
                            e.draw();
                        }, 1e3)));
                    },
                    initSize: function() {
                        var t = a.system();
                        this.rpx2px = t.rpx2px, this.widthIn = r.upx2px(this.width) * this.multiple, this.heightIn = r.upx2px(this.cheight) * this.multiple, 
                        console.log(r.getStorageSync("mtwmposter"));
                    },
                    draw: function() {
                        var t = this;
                        "" != this.bgImg ? (console.log(this.bgImg), this.drawBGIMG(this.bgImg, function() {
                            t.step03();
                        })) : this.step03();
                    },
                    step03: function() {
                        var i = this;
                        1 == r.getStorageSync("setting").poster_type && 0 == this.currentIndex ? this.qrcode = r.getStorageSync("mtwmqrcode2") : 1 == r.getStorageSync("setting").poster_type && 1 == this.currentIndex && (this.qrcode = r.getStorageSync("mtscqrcode2")), 
                        console.log(this.qrcode), r.downloadFile({
                            url: this.qrcode,
                            success: function(t) {
                                var e, a, n;
                                200 === t.statusCode && (console.log("ok"), e = 0 == i.currentIndex ? (a = r.getStorageSync("setting").waimaitt_meituanwm_poster_qrcode ? r.getStorageSync("setting").waimaitt_meituanwm_poster_qrcode : 350, 
                                n = r.getStorageSync("setting").waimaitt_meituanwm_poster_qrcodex ? r.getStorageSync("setting").waimaitt_meituanwm_poster_qrcodex : 0, 
                                r.getStorageSync("setting").waimaitt_meituanwm_poster_qrcodey ? r.getStorageSync("setting").waimaitt_meituanwm_poster_qrcodey : 615) : (a = r.getStorageSync("setting").waimaitt_meituansc_poster_qrcode ? r.getStorageSync("setting").waimaitt_meituansc_poster_qrcode : 350, 
                                n = r.getStorageSync("setting").waimaitt_meituansc_poster_qrcodex ? r.getStorageSync("setting").waimaitt_meituansc_poster_qrcodex : 0, 
                                r.getStorageSync("setting").waimaitt_meituansc_poster_qrcodey ? r.getStorageSync("setting").waimaitt_meituansc_poster_qrcodey : 615), 
                                a = r.upx2px(a) * i.multiple, n = r.upx2px(n) * i.multiple, n = (i.widthIn - a + n) / 2, 
                                i.context.drawImage(t.tempFilePath, n, i.heightIn - r.upx2px(e) * i.multiple, a, a), 
                                i.drawIt());
                            },
                            fail: function(t) {
                                console.log(t);
                            }
                        });
                    },
                    drawText: function(t, e, a, n, i, r) {},
                    drawIt: function() {
                        var e = this;
                        this.imgSrc = "", this.context.draw(!0, function() {
                            r.canvasToTempFilePath({
                                x: 0,
                                y: 0,
                                width: e.widthIn,
                                height: e.heightIn,
                                destWidth: e.widthIn,
                                destHeight: e.heightIn,
                                canvasId: "graceCanvas",
                                success: function(t) {
                                    console.log(t), 1 == e.loadposter && (e.show_poster = !0, e.loadposter = 0), 1 == e.currentIndex ? (e.mtscposter = t.tempFilePath, 
                                    e.imgSrc = t.tempFilePath, r.setStorageSync("mtscposter", t.tempFilePath)) : (e.mtwmposter = t.tempFilePath, 
                                    e.imgSrc = t.tempFilePath, r.setStorageSync("mtwmposter", t.tempFilePath)), setTimeout(function() {
                                        r.hideLoading();
                                    }, 1e3);
                                },
                                fail: function(t) {
                                    console.log(t), r.hideLoading();
                                }
                            });
                        });
                    },
                    drawBGIMG: function(t, a) {
                        var n = this;
                        console.log(t), r.downloadFile({
                            url: t,
                            success: function(e) {
                                console.log(e), 200 == e.statusCode && (console.log(e.tempFilePath), r.getImageInfo({
                                    src: e.tempFilePath,
                                    success: function(t) {
                                        t = n.widthIn / t.width * t.height;
                                        console.log(t), n.context.drawImage(e.tempFilePath, 0, 0, n.widthIn, t), a();
                                    }
                                }));
                            },
                            fail: function(t) {
                                console.log(t), r.hideLoading();
                            }
                        });
                    },
                    openShopad: function(a) {
                        if (r.getStorageSync("userinfo").nickname || 1 != r.getStorageSync("setting").login_type || !wx.getUserProfile) {
                            r.showLoading({
                                title: "加载中...",
                                mask: !1
                            });
                            var n = this;
                            if (1 == a.currentTarget.dataset.is_ios && "ios" == r.getStorageSync("systemtype") && 0 == r.getStorageSync("setting").ios) {
                                var t = g.globalData.util.url("entry/wxapp/api", {
                                    m: g.globalData.module_name,
                                    o: "ad_kefubind"
                                });
                                return r.request({
                                    url: t,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        adtype: "ad",
                                        adid: a.currentTarget.dataset.adid,
                                        openid: r.getStorageSync("openid")
                                    },
                                    success: function(t) {}
                                }), this.contact_type = "ad", this.contact_id = a.currentTarget.dataset.adid, this.contact_title = a.currentTarget.dataset.title, 
                                this.contact_title_text = "暂不支持购买", this.contact_title_desc = "苹果iOS系统手机暂不支持购买，请分享给非iOS系统的微信购买！", 
                                this.contact_thumb = r.getStorageSync("setting").dianwo, r.hideLoading(), void this.showDialog3();
                            }
                            if (1 == a.currentTarget.dataset.adtype) {
                                if (0 < a.currentTarget.dataset.appid_type && a.currentTarget.dataset.appid_type <= 8) {
                                    if (0 == r.getStorageSync("setting").warn_tplid.length) return 1 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtwm_url") ? !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (r.hideLoading(), 
                                    void this.showDialog2()) : (1 == a.currentTarget.dataset.mtpic ? r.previewImage({
                                        urls: [ r.getStorageSync("mtwmqrcode2") ]
                                    }) : r.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: r.getStorageSync("mtwm_url")
                                    }), void r.hideLoading()) : 1 != a.currentTarget.dataset.appid_type || r.getStorageSync("mtwm_url") ? 2 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtsc_url") ? (!r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? r.previewImage({
                                        urls: [ r.getStorageSync("mtscqrcode2") ]
                                    }) : r.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: r.getStorageSync("mtsc_url")
                                    }), void r.hideLoading()) : 2 != a.currentTarget.dataset.appid_type || r.getStorageSync("mtsc_url") ? 5 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxtuan_url") ? (!r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: r.getStorageSync("mtfxtuan_url")
                                    }), void r.hideLoading()) : 5 != a.currentTarget.dataset.appid_type || r.getStorageSync("mtfxtuan_url") ? 6 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxwm_url") ? (!r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: r.getStorageSync("mtfxwm_url")
                                    }), void r.hideLoading()) : 6 != a.currentTarget.dataset.appid_type || r.getStorageSync("mtfxwm_url") ? 7 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxsc_url") ? (!r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: r.getStorageSync("mtfxsc_url")
                                    }), void r.hideLoading()) : 7 != a.currentTarget.dataset.appid_type || r.getStorageSync("mtfxsc_url") ? 8 == a.currentTarget.dataset.appid_type ? !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void r.hideLoading()) : (t = g.globalData.util.url("entry/wxapp/ad_kefubind2", {
                                        m: g.globalData.module_name
                                    }), r.request({
                                        url: t,
                                        method: "POST",
                                        header: {
                                            "content-type": "application/x-www-form-urlencoded"
                                        },
                                        data: {
                                            adtype: "hotel",
                                            adid: a.currentTarget.dataset.adid,
                                            openid: r.getStorageSync("openid")
                                        },
                                        success: function(t) {}
                                    }), n.contact_type = "hotel", n.contact_id = a.currentTarget.dataset.adid, n.contact_title = a.currentTarget.dataset.title, 
                                    n.contact_title_text = a.currentTarget.dataset.title_text, n.contact_title_desc = a.currentTarget.dataset.title_desc, 
                                    n.contact_thumb = r.getStorageSync("setting").dianwo, r.hideLoading(), void n.showDialog3()) : 3 == a.currentTarget.dataset.appid_type && r.getStorageSync("elmwm_url") ? !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void r.hideLoading()) : (r.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: r.getStorageSync("elmwm_url")
                                    }), r.hideLoading(), void n.updatepid()) : 3 != a.currentTarget.dataset.appid_type || r.getStorageSync("elmwm_url") ? 4 == a.currentTarget.dataset.appid_type && r.getStorageSync("elmsc_url") ? !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void r.hideLoading()) : (r.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: r.getStorageSync("elmsc_url")
                                    }), r.hideLoading(), void n.updatepid()) : 4 != a.currentTarget.dataset.appid_type || r.getStorageSync("elmsc_url") ? void r.hideLoading() : !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void r.hideLoading()) : (n.appid_type = 4, void n.gettaobaoauth()) : !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void r.hideLoading()) : (n.appid_type = 3, void n.gettaobaoauth()) : !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void r.hideLoading()) : (n.appid_type = 7, void n.meituanfenxiao_urlFun()) : !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void r.hideLoading()) : (n.appid_type = 6, void n.meituanfenxiao_urlFun()) : !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void r.hideLoading()) : (n.appid_type = 5, void n.meituanfenxiao_urlFun()) : !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void r.hideLoading()) : (n.appid_type = 2, n.mtpic = a.currentTarget.dataset.mtpic, 
                                    void n.meituan_urlFun()) : !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                    void r.hideLoading()) : (n.appid_type = 1, n.mtpic = a.currentTarget.dataset.mtpic, 
                                    void n.meituan_urlFun());
                                    if (0 < r.getStorageSync("setting").warn_tplid.length && r.getStorageSync("warn_daynum") < r.getStorageSync("setting").warn_tpl_daynum) wx.requestSubscribeMessage({
                                        tmplIds: r.getStorageSync("setting").warn_tplid,
                                        success: function(t) {
                                            if ("reject" == t[r.getStorageSync("setting").warn_yhq_tplid]) {
                                                if (1 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? r.previewImage({
                                                    urls: [ r.getStorageSync("mtwmqrcode2") ]
                                                }) : r.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: r.getStorageSync("mtwm_url")
                                                }), void r.hideLoading();
                                                if (1 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 1, n.mtpic = a.currentTarget.dataset.mtpic, 
                                                void n.meituan_urlFun());
                                                if (2 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? r.previewImage({
                                                    urls: [ r.getStorageSync("mtscqrcode2") ]
                                                }) : r.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: r.getStorageSync("mtsc_url")
                                                }), void r.hideLoading();
                                                if (2 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 2, n.mtpic = a.currentTarget.dataset.mtpic, 
                                                void n.meituan_urlFun());
                                                if (5 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxtuan_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: r.getStorageSync("mtfxtuan_url")
                                                }), void r.hideLoading();
                                                if (5 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtfxtuan_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 5, void n.meituanfenxiao_urlFun());
                                                if (6 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: r.getStorageSync("mtfxwm_url")
                                                }), void r.hideLoading();
                                                if (6 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtfxwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 6, void n.meituanfenxiao_urlFun());
                                                if (7 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: r.getStorageSync("mtfxsc_url")
                                                }), void r.hideLoading();
                                                if (7 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtfxsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 7, void n.meituanfenxiao_urlFun());
                                                if (8 == a.currentTarget.dataset.appid_type) {
                                                    if (!r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile) return this.showDialog2(), 
                                                    void r.hideLoading();
                                                    var e = g.globalData.util.url("entry/wxapp/ad_kefubind2", {
                                                        m: g.globalData.module_name
                                                    });
                                                    return r.request({
                                                        url: e,
                                                        method: "POST",
                                                        header: {
                                                            "content-type": "application/x-www-form-urlencoded"
                                                        },
                                                        data: {
                                                            adtype: "hotel",
                                                            adid: a.currentTarget.dataset.adid,
                                                            openid: r.getStorageSync("openid")
                                                        },
                                                        success: function(t) {}
                                                    }), n.contact_type = "hotel", n.contact_id = a.currentTarget.dataset.adid, n.contact_title = a.currentTarget.dataset.title, 
                                                    n.contact_title_text = a.currentTarget.dataset.title_text, n.contact_title_desc = a.currentTarget.dataset.title_desc, 
                                                    n.contact_thumb = r.getStorageSync("setting").dianwo, r.hideLoading(), void n.showDialog3();
                                                }
                                                if (3 == a.currentTarget.dataset.appid_type && r.getStorageSync("elmwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (r.navigateToMiniProgram({
                                                    appId: "wxece3a9a4c82f58c9",
                                                    path: r.getStorageSync("elmwm_url")
                                                }), r.hideLoading(), void n.updatepid());
                                                if (3 == a.currentTarget.dataset.appid_type && !r.getStorageSync("elmwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 3, void n.gettaobaoauth());
                                                if (4 == a.currentTarget.dataset.appid_type && r.getStorageSync("elmsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (r.navigateToMiniProgram({
                                                    appId: "wxece3a9a4c82f58c9",
                                                    path: r.getStorageSync("elmsc_url")
                                                }), r.hideLoading(), void n.updatepid());
                                                if (4 == a.currentTarget.dataset.appid_type && !r.getStorageSync("elmsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 4, void n.gettaobaoauth());
                                                r.request({
                                                    url: e,
                                                    method: "POST",
                                                    header: {
                                                        "content-type": "application/x-www-form-urlencoded"
                                                    },
                                                    data: {
                                                        openid: r.getStorageSync("openid"),
                                                        type: 1
                                                    },
                                                    success: function(t) {
                                                        r.setStorageSync("warn_daynum", t.data.warm_daynum), r.hideLoading();
                                                    }
                                                });
                                            } else {
                                                if (e = g.globalData.util.url("entry/wxapp/api", {
                                                    m: g.globalData.module_name,
                                                    o: "subscribemessage"
                                                }), r.request({
                                                    url: e,
                                                    method: "POST",
                                                    header: {
                                                        "content-type": "application/x-www-form-urlencoded"
                                                    },
                                                    data: {
                                                        openid: r.getStorageSync("openid"),
                                                        type: 1
                                                    },
                                                    success: function(t) {
                                                        var e = n.userinfo;
                                                        n.warn_num++, e.s_1_num++, n.userinfo = e, r.setStorageSync("warn_daynum", t.data.warm_daynum), 
                                                        r.hideLoading();
                                                    }
                                                }), 1 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? r.previewImage({
                                                    urls: [ r.getStorageSync("mtwmqrcode2") ]
                                                }) : r.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: r.getStorageSync("mtwm_url")
                                                }), void r.hideLoading();
                                                if (1 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 1, n.mtpic = a.currentTarget.dataset.mtpic, 
                                                void n.meituan_urlFun());
                                                if (2 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? r.previewImage({
                                                    urls: [ r.getStorageSync("mtscqrcode2") ]
                                                }) : r.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: r.getStorageSync("mtsc_url")
                                                }), void r.hideLoading();
                                                if (2 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 2, n.mtpic = a.currentTarget.dataset.mtpic, 
                                                void n.meituan_urlFun());
                                                if (5 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxtuan_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: r.getStorageSync("mtfxtuan_url")
                                                }), void r.hideLoading();
                                                if (5 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtfxtuan_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 5, void n.meituanfenxiao_urlFun());
                                                if (6 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: r.getStorageSync("mtfxwm_url")
                                                }), void r.hideLoading();
                                                if (6 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtfxwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 6, void n.meituanfenxiao_urlFun());
                                                if (7 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                                    appId: "wxde8ac0a21135c07d",
                                                    path: r.getStorageSync("mtfxsc_url")
                                                }), void r.hideLoading();
                                                if (7 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtfxsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 7, void n.meituanfenxiao_urlFun());
                                                if (8 == a.currentTarget.dataset.appid_type) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (e = g.globalData.util.url("entry/wxapp/ad_kefubind2", {
                                                    m: g.globalData.module_name
                                                }), r.request({
                                                    url: e,
                                                    method: "POST",
                                                    header: {
                                                        "content-type": "application/x-www-form-urlencoded"
                                                    },
                                                    data: {
                                                        adtype: "hotel",
                                                        adid: a.currentTarget.dataset.adid,
                                                        openid: r.getStorageSync("openid")
                                                    },
                                                    success: function(t) {}
                                                }), n.contact_type = "hotel", n.contact_id = a.currentTarget.dataset.adid, n.contact_title = a.currentTarget.dataset.title, 
                                                n.contact_title_text = a.currentTarget.dataset.title_text, n.contact_title_desc = a.currentTarget.dataset.title_desc, 
                                                n.contact_thumb = r.getStorageSync("setting").dianwo, r.hideLoading(), void n.showDialog3());
                                                if (3 == a.currentTarget.dataset.appid_type && r.getStorageSync("elmwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (r.navigateToMiniProgram({
                                                    appId: "wxece3a9a4c82f58c9",
                                                    path: r.getStorageSync("elmwm_url")
                                                }), r.hideLoading(), void n.updatepid());
                                                if (3 == a.currentTarget.dataset.appid_type && !r.getStorageSync("elmwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 3, void n.gettaobaoauth());
                                                if (4 == a.currentTarget.dataset.appid_type && r.getStorageSync("elmsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (r.navigateToMiniProgram({
                                                    appId: "wxece3a9a4c82f58c9",
                                                    path: r.getStorageSync("elmsc_url")
                                                }), r.hideLoading(), void n.updatepid());
                                                if (4 == a.currentTarget.dataset.appid_type && !r.getStorageSync("elmsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                                void r.hideLoading()) : (n.appid_type = 4, void n.gettaobaoauth());
                                                r.hideLoading();
                                            }
                                            r.hideLoading();
                                        },
                                        fail: function(t) {
                                            r.hideLoading();
                                        }
                                    }), r.hideLoading(); else {
                                        if (t = g.globalData.util.url("entry/wxapp/api", {
                                            m: g.globalData.module_name,
                                            o: "subscribemessage"
                                        }), r.request({
                                            url: t,
                                            method: "POST",
                                            header: {
                                                "content-type": "application/x-www-form-urlencoded"
                                            },
                                            data: {
                                                openid: r.getStorageSync("openid"),
                                                type: 2
                                            },
                                            success: function(t) {
                                                r.setStorageSync("warn_daynum", t.data.warm_daynum), r.hideLoading();
                                            }
                                        }), 1 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? r.previewImage({
                                            urls: [ r.getStorageSync("mtwmqrcode2") ]
                                        }) : r.navigateToMiniProgram({
                                            appId: "wxde8ac0a21135c07d",
                                            path: r.getStorageSync("mtwm_url")
                                        }), void r.hideLoading();
                                        if (1 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void r.hideLoading()) : (n.appid_type = 1, n.mtpic = a.currentTarget.dataset.mtpic, 
                                        void n.meituan_urlFun());
                                        if (2 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : 1 == a.currentTarget.dataset.mtpic ? r.previewImage({
                                            urls: [ r.getStorageSync("mtscqrcode2") ]
                                        }) : r.navigateToMiniProgram({
                                            appId: "wxde8ac0a21135c07d",
                                            path: r.getStorageSync("mtsc_url")
                                        }), void r.hideLoading();
                                        if (2 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void r.hideLoading()) : (n.appid_type = 2, n.mtpic = a.currentTarget.dataset.mtpic, 
                                        void n.meituan_urlFun());
                                        if (5 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxtuan_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                            appId: "wxde8ac0a21135c07d",
                                            path: r.getStorageSync("mtfxtuan_url")
                                        }), void r.hideLoading();
                                        if (5 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtfxtuan_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void r.hideLoading()) : (n.appid_type = 5, void n.meituanfenxiao_urlFun());
                                        if (6 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                            appId: "wxde8ac0a21135c07d",
                                            path: r.getStorageSync("mtfxwm_url")
                                        }), void r.hideLoading();
                                        if (6 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtfxwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void r.hideLoading()) : (n.appid_type = 6, void n.meituanfenxiao_urlFun());
                                        if (7 == a.currentTarget.dataset.appid_type && r.getStorageSync("mtfxsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : r.navigateToMiniProgram({
                                            appId: "wxde8ac0a21135c07d",
                                            path: r.getStorageSync("mtfxsc_url")
                                        }), void r.hideLoading();
                                        if (7 == a.currentTarget.dataset.appid_type && !r.getStorageSync("mtfxsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void r.hideLoading()) : (n.appid_type = 7, void n.meituanfenxiao_urlFun());
                                        if (8 == a.currentTarget.dataset.appid_type) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void r.hideLoading()) : (t = g.globalData.util.url("entry/wxapp/ad_kefubind2", {
                                            m: g.globalData.module_name
                                        }), r.request({
                                            url: t,
                                            method: "POST",
                                            header: {
                                                "content-type": "application/x-www-form-urlencoded"
                                            },
                                            data: {
                                                adtype: "hotel",
                                                adid: a.currentTarget.dataset.adid,
                                                openid: r.getStorageSync("openid")
                                            },
                                            success: function(t) {}
                                        }), n.contact_type = "hotel", n.contact_id = a.currentTarget.dataset.adid, n.contact_title = a.currentTarget.dataset.title, 
                                        n.contact_title_text = a.currentTarget.dataset.title_text, n.contact_title_desc = a.currentTarget.dataset.title_desc, 
                                        n.contact_thumb = r.getStorageSync("setting").dianwo, r.hideLoading(), void n.showDialog3());
                                        if (3 == a.currentTarget.dataset.appid_type && r.getStorageSync("elmwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void r.hideLoading()) : (r.navigateToMiniProgram({
                                            appId: "wxece3a9a4c82f58c9",
                                            path: r.getStorageSync("elmwm_url")
                                        }), r.hideLoading(), n.updatepid(), void console.log(r.getStorageSync("elmwm_url")));
                                        if (3 == a.currentTarget.dataset.appid_type && !r.getStorageSync("elmwm_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void r.hideLoading()) : (n.appid_type = 3, void n.gettaobaoauth());
                                        if (4 == a.currentTarget.dataset.appid_type && r.getStorageSync("elmsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void r.hideLoading()) : (r.navigateToMiniProgram({
                                            appId: "wxece3a9a4c82f58c9",
                                            path: r.getStorageSync("elmsc_url")
                                        }), r.hideLoading(), n.updatepid(), void console.log(r.getStorageSync("elmsc_url")));
                                        if (4 == a.currentTarget.dataset.appid_type && !r.getStorageSync("elmsc_url")) return !r.getStorageSync("userinfo").nickname && 1 == r.getStorageSync("setting").login_type && wx.getUserProfile ? (this.showDialog2(), 
                                        void r.hideLoading()) : (console.log("ccc"), n.appid_type = 4, void n.gettaobaoauth());
                                        r.hideLoading();
                                    }
                                    r.hideLoading();
                                }
                                if (0 == a.currentTarget.dataset.appid_type) return r.navigateToMiniProgram({
                                    appId: a.currentTarget.dataset.appid,
                                    path: a.currentTarget.dataset.path
                                }), void r.hideLoading();
                                r.hideLoading();
                            }
                            if (5 == a.currentTarget.dataset.adtype) return r.navigateTo({
                                url: "../kefu/webview?return_url=" + encodeURIComponent(a.currentTarget.dataset.url)
                            }), void r.hideLoading();
                            if (4 == a.currentTarget.dataset.adtype) {
                                if (r.setStorageSync("index_nav", a.currentTarget.dataset.url), -1 != a.currentTarget.dataset.url.indexOf("../index/") || -1 != a.currentTarget.dataset.url.indexOf("../meituangroup/") || -1 != a.currentTarget.dataset.url.indexOf("../user/") || -1 != a.currentTarget.dataset.url.indexOf("../movie/") || -1 != a.currentTarget.dataset.url.indexOf("../shop/") || -1 != a.currentTarget.dataset.url.indexOf("../kefu/") || -1 != a.currentTarget.dataset.url.indexOf("../meituan/") || -1 != a.currentTarget.dataset.url.indexOf("../elm/")) return r.navigateTo({
                                    url: a.currentTarget.dataset.url
                                }), void r.hideLoading();
                                if (-1 == a.currentTarget.dataset.url.indexOf("../../../pages/index/") && -1 == a.currentTarget.dataset.url.indexOf("../../../pages/user/") && -1 == a.currentTarget.dataset.url.indexOf("../../../pages/kefu/")) return -1 != a.currentTarget.dataset.url.indexOf("../../../pages/meituan/") || -1 != a.currentTarget.dataset.url.indexOf("../../../pages/elm/") || -1 != a.currentTarget.dataset.url.indexOf("../../../pages/eat/") ? (e = a.currentTarget.dataset.url.replace("../../../pages/", "../../pagesA/pages/"), 
                                r.navigateTo({
                                    url: e
                                })) : -1 != a.currentTarget.dataset.url.indexOf("../../pagesA/pages/movie/") || -1 != a.currentTarget.dataset.url.indexOf("../../pagesA/pages/shop/") ? (e = a.currentTarget.dataset.url.replace("../../pagesA/pages/", "../"), 
                                r.navigateTo({
                                    url: e
                                })) : -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/movieA/") && -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/shopA/") && -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/meituan/") && -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/elm/") && -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/eat/") && -1 == a.currentTarget.dataset.url.indexOf("../../pagesA/pages/userA/") && (-1 != a.currentTarget.dataset.url.indexOf("../meituan/") || -1 != a.currentTarget.dataset.url.indexOf("../elm/") || -1 != a.currentTarget.dataset.url.indexOf("../eat/")) ? (e = a.currentTarget.dataset.url.replace("../", "../../pagesA/pages/"), 
                                r.navigateTo({
                                    url: e
                                })) : r.navigateTo({
                                    url: a.currentTarget.dataset.url
                                }), void r.hideLoading();
                                var e = a.currentTarget.dataset.url.replace("../../../pages/", "../");
                                return r.navigateTo({
                                    url: e
                                }), void r.hideLoading();
                            }
                            2 != a.currentTarget.dataset.adtype && 3 != a.currentTarget.dataset.adtype || (t = g.globalData.util.url("entry/wxapp/api", {
                                m: g.globalData.module_name,
                                o: "ad_kefubind"
                            }), r.request({
                                url: t,
                                method: "POST",
                                header: {
                                    "content-type": "application/x-www-form-urlencoded"
                                },
                                data: {
                                    adtype: "ad",
                                    adid: a.currentTarget.dataset.adid,
                                    openid: r.getStorageSync("openid")
                                },
                                success: function(t) {}
                            }), this.contact_title_desc = "", this.contact_type = "ad", this.contact_id = a.currentTarget.dataset.adid, 
                            this.contact_title = a.currentTarget.dataset.title, this.contact_title_text = a.currentTarget.dataset.title_text, 
                            this.contact_title_desc = a.currentTarget.dataset.title_desc, this.contact_thumb = r.getStorageSync("setting").dianwo, 
                            r.hideLoading(), this.showDialog3()), r.hideLoading();
                        } else this.showDialog2();
                    },
                    taobaoauth: function() {
                        var e = this;
                        r.setClipboardData({
                            data: this.qudao_tkl,
                            success: function(t) {
                                r.showToast({
                                    title: "复制成功，请打开淘宝授权",
                                    icon: "none"
                                }), e.is_qudao_tkl = 1, r.hideLoading();
                            }
                        });
                    },
                    retaobaoauth: function() {
                        this.is_qudao_tkl = 0, this.qudao_tkl = "", this.gettaobaoauth();
                    },
                    notaobaoauth: function() {
                        3 == this.appid_type && r.navigateToMiniProgram({
                            appId: "wxece3a9a4c82f58c9",
                            path: r.getStorageSync("setting").default_elmwmpath
                        }), 4 == this.appid_type && r.navigateToMiniProgram({
                            appId: "wxece3a9a4c82f58c9",
                            path: r.getStorageSync("setting").default_elmscpath
                        });
                    },
                    taobaoauth_done: function() {
                        var a = this, t = g.globalData.util.url("entry/wxapp/api", {
                            m: g.globalData.module_name,
                            o: "taobaoauth_done"
                        });
                        r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                appid_type: a.appid_type
                            },
                            success: function(t) {
                                var e;
                                0 != t.data.status ? (e = g.globalData.crypt.Decrypt(t.data.data.data, t.data.data.key), 
                                e = JSON.parse(e), 1 == t.data.status ? (3 == a.appid_type && (r.setStorageSync("elmwm_url", e.elmwm_url), 
                                r.setStorageSync("elmwmqrcode", e.elmwm_qrcode), r.setStorageSync("elmwm_h5", e.elmwm_h5), 
                                r.setStorageSync("pid_time", +e.pid_time), r.getStorageSync("pid_time") != r.getStorageSync("pid_use_time") && r.setStorageSync("pid_use_time", r.getStorageSync("pid_time")), 
                                r.setStorageSync("is_qudao", e.is_qudao), a.closeDialog1(), r.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: e.elmwm_url
                                })), 4 == a.appid_type && (r.setStorageSync("elmsc_url", e.elmsc_url), r.setStorageSync("elmscqrcode", e.elmsc_qrcode), 
                                r.setStorageSync("elmsc_h5", e.elmsc_h5), r.setStorageSync("pid_time", +e.pid_time), 
                                r.getStorageSync("pid_time") != r.getStorageSync("pid_use_time") && r.setStorageSync("pid_use_time", r.getStorageSync("pid_time")), 
                                r.setStorageSync("is_qudao", e.is_qudao), a.closeDialog1(), r.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: e.elmsc_url
                                }))) : r.showModal({
                                    title: "提示",
                                    content: "未获取到您的授权信息，请重试！",
                                    showCancel: !1,
                                    success: function(t) {
                                        t.confirm || t.cancel;
                                    }
                                })) : r.showModal({
                                    title: "提示",
                                    content: "未获取到您的授权信息，请重试！",
                                    showCancel: !1,
                                    success: function(t) {
                                        t.confirm || t.cancel;
                                    }
                                });
                            }
                        });
                    },
                    gettaobaoauth: function() {
                        var e = this, a = this, t = g.globalData.util.url("entry/wxapp/api", {
                            m: g.globalData.module_name,
                            o: "gettaobaoauth"
                        });
                        r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                appid_type: a.appid_type
                            },
                            success: function(t) {
                                1 == t.data.status ? (a.showDialog1(), r.hideLoading(), a.qudao_tkl = t.data.data) : 0 == t.data.status ? (r.hideLoading(), 
                                r.showToast({
                                    title: "获取授权信息出错",
                                    icon: "none"
                                })) : 2 == t.data.status && (t = g.globalData.crypt.Decrypt(t.data.data.data, t.data.data.key), 
                                t = JSON.parse(t), console.log("gettaobaoauth:" + t), 3 == e.appid_type && (r.setStorageSync("elmwm_url", t.elmwm_url), 
                                r.setStorageSync("elmwmqrcode", t.elmwm_qrcode), r.setStorageSync("elmwm_h5", t.elmwm_h5), 
                                r.setStorageSync("pid_time", +t.pid_time), r.getStorageSync("pid_time") != r.getStorageSync("pid_use_time") && r.setStorageSync("pid_use_time", r.getStorageSync("pid_time")), 
                                r.setStorageSync("is_qudao", t.is_qudao), r.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: t.elmwm_url
                                }), r.hideLoading()), 4 == e.appid_type && (r.setStorageSync("elmsc_url", t.elmsc_url), 
                                r.setStorageSync("elmscqrcode", t.elmsc_qrcode), r.setStorageSync("elmsc_h5", t.elmsc_h5), 
                                r.setStorageSync("pid_time", +t.pid_time), r.getStorageSync("pid_time") != r.getStorageSync("pid_use_time") && r.setStorageSync("pid_use_time", r.getStorageSync("pid_time")), 
                                r.setStorageSync("is_qudao", t.is_qudao), r.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: t.elmsc_url
                                }), r.hideLoading()));
                            }
                        });
                    },
                    closeContact: function() {
                        this.closeDialog3();
                    },
                    checksubmessage: function(t) {
                        var a;
                        r.getStorageSync("userinfo").nickname || 1 != r.getStorageSync("setting").login_type || !wx.getUserProfile ? (a = this, 
                        wx.requestSubscribeMessage({
                            tmplIds: r.getStorageSync("setting").warn_tplid,
                            success: function(t) {
                                console.log(t), "reject" == t[r.getStorageSync("setting").warn_yhq_tplid] ? wx.showToast({
                                    title: "您拒绝了订阅消息",
                                    duration: 1e3,
                                    success: function(t) {}
                                }) : wx.showToast({
                                    title: "订阅成功",
                                    duration: 1e3,
                                    success: function(t) {
                                        var e = g.globalData.util.url("entry/wxapp/api", {
                                            m: g.globalData.module_name,
                                            o: "subscribemessage"
                                        });
                                        r.request({
                                            url: e,
                                            method: "POST",
                                            header: {
                                                "content-type": "application/x-www-form-urlencoded"
                                            },
                                            data: {
                                                openid: r.getStorageSync("openid"),
                                                type: 1
                                            },
                                            success: function(t) {
                                                var e = a.userinfo;
                                                a.warn_num++, e.s_1_num++, a.userinfo = e, r.setStorageSync("warn_daynum", t.data.warm_daynum);
                                            }
                                        });
                                    }
                                });
                            },
                            fail: function(t) {}
                        })) : this.showDialog2();
                    },
                    updatepid: function() {
                        var t = g.globalData.util.url("entry/wxapp/api", {
                            m: g.globalData.module_name,
                            o: "updatepid"
                        });
                        r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid")
                            },
                            success: function(t) {}
                        });
                    },
                    meituanfenxiao_urlFun: function() {
                        r.showLoading({
                            title: "加载中...",
                            mask: !1
                        });
                        var e = this;
                        if (5 == e.appid_type && r.getStorageSync("mtfxtuan_url")) return r.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: r.getStorageSync("mtfxtuan_url")
                        }), void r.hideLoading();
                        if (6 == e.appid_type && r.getStorageSync("mtfxwm_url")) return r.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: r.getStorageSync("mtfxwm_url")
                        }), void r.hideLoading();
                        if (7 == e.appid_type && r.getStorageSync("mtfxsc_url")) return r.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: r.getStorageSync("mtfxsc_url")
                        }), void r.hideLoading();
                        var t = g.globalData.util.url("entry/wxapp/meituangroup_url", {
                            m: g.globalData.module_name
                        });
                        r.request({
                            url: t,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: r.getStorageSync("openid"),
                                appid_type: e.appid_type
                            },
                            success: function(t) {
                                5 == e.appid_type && (r.setStorageSync("mtfxtuan_url", t.data.miniProgramPath), 
                                r.setStorageSync("mtfxtuan_h5", t.data.commonLink), r.setStorageSync("mtfxtuanqrcode2", t.data.miniProgramQrCode), 
                                r.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: t.data.miniProgramPath
                                }), r.hideLoading()), 6 == e.appid_type && (r.setStorageSync("mtfxwm_url", t.data.miniProgramPath), 
                                r.setStorageSync("mtfxwm_h5", t.data.commonLink), r.setStorageSync("mtfxwmqrcode2", t.data.miniProgramQrCode), 
                                r.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: t.data.miniProgramPath
                                }), r.hideLoading()), 7 == e.appid_type && (r.setStorageSync("mtfxsc_url", t.data.miniProgramPath), 
                                r.setStorageSync("mtfxsc_h5", t.data.commonLink), r.setStorageSync("mtfxscqrcode2", t.data.miniProgramQrCode), 
                                r.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: t.data.miniProgramPath
                                }), r.hideLoading());
                            }
                        });
                    }
                }
            };
            i.default = n;
        }).call(this, s("543d").default);
    },
    a54f: function(t, e, a) {
        var n = a("2d4a");
        a.n(n).a;
    },
    b2f5: function(t, e, a) {
        a.r(e);
        var n, i = a("7c3e"), r = a.n(i);
        for (n in i) "default" !== n && function(t) {
            a.d(e, t, function() {
                return i[t];
            });
        }(n);
        e.default = r.a;
    }
}, [ [ "2942", "common/runtime", "common/vendor" ] ] ]);